package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule.DurationRule;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule.DurationRuleDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 促销-时长规则 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Repository
public interface DurationRuleMapper extends BaseMapper<DurationRule> {

    /**查询时长规则列表*/
    IPage<DurationRuleDTO> getDurationRuleList(Page page, @Param("keyword") String keyword);
    /**根据id查询时长规则*/
    DurationRuleDTO getDurationRuleById(Integer id);

}
